<h1>系统状态</h1>
<div class="row">
    <div class="col-md-6">
        <table id='instances' class="table table-condensed table-striped table-hover">
      <#if amazonInfo??>
        <tr>
            <td>EUREKA SERVER</td>
            <td>AMI: ${amiId!}</td>
        </tr>
        <tr>
            <td>Zone</td>
            <td>${availabilityZone!}</td>
        </tr>
        <tr>
            <td>instance-id</td>
            <td>${instanceId!}</td>
        </tr>
      </#if>
            <tr>
                <td>环境</td>
                <td>${environment!}</td>
            </tr>
            <tr>
                <td>数据中心</td>
                <td>${datacenter!}</td>
            </tr>
            <tr>
                <td>注意事项</td>
                <td>由于注册服务时是内网IP，也无需担心别人访问你的服务。</td>
            </tr>
            <tr>
                <td>注册配置</td>
                <td>client:<br/>
                    &emsp;service-url:<br/>
                    &emsp;&emsp;defaultZone: http://user:password@localhost:8761/eureka/</td>
            </tr>
        </table>
    </div>
    <div class="col-md-6">
        <table id='instances' class="table table-condensed table-striped table-hover">
            <tr>
                <td>当前时间</td>
                <td>${currentTime}</td>
            </tr>
            <tr>
                <td>运行时间</td>
                <td>${upTime}</td>
            </tr>
            <tr>
                <td>是否已关闭自我保护模式</td>
                <td>${registry.leaseExpirationEnabled?c}</td>
            </tr>
            <tr>
                <td>更新阈值</td>
                <td>${registry.numOfRenewsPerMinThreshold}</td>
            </tr>
            <tr>
                <td>更新（最后一分钟）</td>
                <td>${registry.numOfRenewsInLastMin}</td>
            </tr>
        </table>
    </div>
</div>

<#if isBelowRenewThresold>
    <#if !registry.selfPreservationModeEnabled>
        <h4 id="uptime"><font size="+1" color="red"><b>续费低于阈值。自我保护模式已关闭。这可能无法在出现网络/其他问题时保护实例到期。</b></font></h4>
    <#else>
        <h4 id="uptime"><font size="+1" color="red"><b>紧急情况！Eureka可能不正确地声称实例在不在的情况下出现。续订小于阈值，因此不会为了安全而过期实例。</b></font></h4>
    </#if>
<#elseif !registry.selfPreservationModeEnabled>
    <h4 id="uptime"><font size="+1" color="red"><b>自我保护模式关闭。这可能无法保护网络/其他问题时实例过期。</b></font></h4>
</#if>

<h1>DS Replicas</h1>
<ul class="list-group">
  <#list replicas as replica>
      <li class="list-group-item"><a href="${replica.value}">${replica.key}</a></li>
  </#list>
</ul>

